#include "Credit.h"
#include "../../ID/Scene.h"
#include "../../Utility/IO/DeviceInput/SceneInput.h"
#include "../../Utility/Draw/Renderer.h"
#include "../../ID/TextureID.h"

namespace CreditScene
{
	Credit::Credit(){}
	Credit::~Credit(){}

	void Credit::initialize()
	{
		_resources.loadResource();
	}

	void Credit::update( float frameTimer ){ frameTimer; }
	void Credit::draw()
	{
		Renderer::getInstance()->draw2D(TextureID::T_CREDIT); 
	}

	void Credit::finish()
	{
		_resources.releaseResource();
	}

	bool Credit::isEnd() const
	{ 
		return SceneInput::getInstance()->isNextSceneButoonDown(); 
	}

	Scene Credit::next() const
	{
		return Scene::S_MENU; 
	}
};